import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import './plugins/element.js'
import axios from 'axios'

//设置axios的请求拦截器：会在发送axios请求之前，将请求拦截下来
// axios.interceptors.request.use(function(config){
//   let token = window.localStorage.getItem('token')
//   if(token){
//     config.headers.Authorization ='Bearer '+ token;
//     return config
//   }
// },function(error){
//   return Promise.reject(error)
// })

import echarts from 'echarts';
Vue.prototype.$echarts = echarts;


Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
